package com.codejam.gof.prototype.deep;

public class DeepClone {

    public static void main(String[] args) throws Exception {

        System.out.println("WeeklyLog2-----------");

        WeeklyLog2 log1,log2;

        log1 = new WeeklyLog2();

        Attachment2 attachment2 = new Attachment2("name2");
        log1.setAttachment2(attachment2);
        log2 = log1.deepClone();


        System.out.println(log1 == log2);
        System.out.println(log1.getAttachment2() == log2.getAttachment2());
    }
}
